From: Nohemi Fernandez Date: Tue, 11 Oct 2011 21:54:05 +0000 (-0400) Subject: keyboard: fix the keyboard hiding when an extended key is selected X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7459 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3169b2c440895b2961df8746732892c448f7f4b2;p=gnome-shell.git keyboard: fix the keyboard hiding when an extended key is selected Add a corner case for when the extended key is clicked in order to stop the keyboard from prematurely closing. https://bugzilla.gnome.org/show_bug.cgi?id=661707 --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 77ce24495..b4c18ce79 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -269,8 +269,9 @@ Keyboard.prototype = { _onKeyFocusChanged: function () { let focus = global.stage.key_focus; - // Showing an extended key popup will grab focus, but ignore that - if (focus && focus._extended_keys) + // Showing an extended key popup and clicking a key from the extended keys + // will grab focus, but ignore that + if (focus && (focus._extended_keys || (focus._key && focus._key.extended_key))) return; if (focus instanceof Clutter.Text)